package com.zuul;

import com.netflix.zuul.ZuulFilter;
import com.zuul.com.config.MyZuulFilter;
import com.zuul.com.config.MyZuulFilter2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

/**
 * @author HuangSuip
 */
@SpringBootApplication
@EnableZuulProxy
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    @Bean
    public ZuulFilter getZuulFilter(){
        return new MyZuulFilter();
    }
    @Bean
    public ZuulFilter getZuulFilter2(){
        return new MyZuulFilter2();
    }
}
